<%@ page pageEncoding="UTF-8"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>

<isperp:incidentView>

	<jsp:body> 
<jsp:include page="step1view.jsp"></jsp:include>

<form:form id="incidentForm" commandName="model" cssClass="validate"
			action="incident/incident/save">
	<form:hidden path="id" />
	 
<jsp:include page="step2ForEg.jsp"></jsp:include>

</form:form>
		<br></br>
<isperp:datalog businessId="${model.id }"></isperp:datalog>

</jsp:body>
</isperp:incidentView>
<isperp:buttonList>

	<isperp:processButtons processKey="incidentProcess" viewOnly="false"
		autoEntryNext="true" formId="incidentForm" beforeSubmit="function c(name){return check(name);}"
		processId="${model.processId }" businessKey="${model.id }"></isperp:processButtons>

</isperp:buttonList>
<script type="text/javascript">
function check(name)
{
  if(name=="转派")
  {
     var supporterId=$("#supporterId").val();
     var oldSupporterId='${model.supporterId}';
     if(supporterId==oldSupporterId)
     {
        isperp.alert("请选择其他支持人员！");
        return false;
     }else
     {
       return true;
     }
  }else
  {
    return true;
  }
}
</script>


